﻿using System;
using System.Runtime.Serialization;

namespace Kernelx.Contexts.Repositories.Core
{
    /// <summary>
    /// 
    /// </summary>
    public struct StringProperty
    {
        /// <summary>
        /// 属性名
        /// </summary>
        public string Name { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    [Serializable, DataContract]
    public class Alter : Alter<StringProperty>
    {
        /// <summary>
        /// 
        /// </summary>
        public Alter() { }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="propName"></param>
        /// <param name="oldValue"></param>
        /// <param name="newValue"></param>
        public Alter(string propName, object oldValue, object newValue)
            : base(new StringProperty { Name = propName }, oldValue, newValue) { }
    }

}
